package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 */
@TableName("orders_line")
public class OrdersLine implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 明细编号
     */
    @TableId(value = "odd_id", type = IdType.AUTO)
    private Long oddId;

    /**
     * 订单编号
     */
    private Long oddOrderId;

    /**
     * 商品编号
     */
    private Long oddProdId;

    /**
     * 数量
     */
    private Integer oddCount;

    /**
     * 单位
     */
    private String oddUnit;

    /**
     * 价格
     */
    private BigDecimal oddPrice;

    public Long getOddId() {
        return oddId;
    }

    public void setOddId(Long oddId) {
        this.oddId = oddId;
    }

    public Long getOddOrderId() {
        return oddOrderId;
    }

    public void setOddOrderId(Long oddOrderId) {
        this.oddOrderId = oddOrderId;
    }

    public Long getOddProdId() {
        return oddProdId;
    }

    public void setOddProdId(Long oddProdId) {
        this.oddProdId = oddProdId;
    }

    public Integer getOddCount() {
        return oddCount;
    }

    public void setOddCount(Integer oddCount) {
        this.oddCount = oddCount;
    }

    public String getOddUnit() {
        return oddUnit;
    }

    public void setOddUnit(String oddUnit) {
        this.oddUnit = oddUnit;
    }

    public BigDecimal getOddPrice() {
        return oddPrice;
    }

    public void setOddPrice(BigDecimal oddPrice) {
        this.oddPrice = oddPrice;
    }

    @Override
    public String toString() {
        return "OrdersLine{" +
        "oddId = " + oddId +
        ", oddOrderId = " + oddOrderId +
        ", oddProdId = " + oddProdId +
        ", oddCount = " + oddCount +
        ", oddUnit = " + oddUnit +
        ", oddPrice = " + oddPrice +
        "}";
    }
}
